

<!DOCTYPE html>
<html lang="zh">
    <head>
        <meta name="bing-analysis-id" content="1l34373a3c1i2s3b">
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
        <title>用户注册 - <?=$conf['sitename']?></title>
        <link rel="icon" href="../favicon.ico" type="image/ico">
        <meta name="keywords" content="<?=$conf['keywords']?>">
        <meta name="description" content="<?=$conf['description']?>">
        <link href="<?=userassets?>LightYearifname/css/bootstrap.min.css" rel="stylesheet">
        <link href="<?=userassets?>LightYearifname/css/materialdesignicons.min.css" rel="stylesheet">
        <link href="<?=userassets?>LightYearifname/css/style.min.css" rel="stylesheet">
        <style>
        .lyear-wrapper {
            position: relative;
        }
        .lyear-login {
            display: flex !important;
            min-height: 100vh;
            align-items: center !important;
            justify-content: center !important;
        }
        .lyear-login:after{
            content: '';
            min-height: inherit;
            font-size: 0;
        }
        .login-center {
            background: #fff;
            min-width: 29.25rem;
            padding: 2.14286em 3.57143em;
            border-radius: 3px;
            margin: 2.85714em;
        }
        .login-header {
            margin-bottom: 1.5rem !important;
        }
        .login-center .has-feedback.feedback-left .form-control {
            padding-left: 38px;
            padding-right: 12px;
        }
        .login-center .has-feedback.feedback-left .form-control-feedback {
            left: 0;
            right: auto;
            width: 38px;
            height: 38px;
            line-height: 38px;
            z-index: 4;
            color: #dcdcdc;
        }
        .login-center .has-feedback.feedback-left.row .form-control-feedback {
            left: 15px;
        }
        div.touming{
          background-color:#FFFFFF;
          filter: Alpha(Opacity=9, Style=0);
          opacity: 0.9;
        }
        </style>
        </head>
        <body>
        <?=userimgadaption('reg')?>
     <div class="lyear-login">
        <div class="touming">
    <div class="login-center">
      <div class="login-header text-center">
          <h2><a href="./"> 用户注册</a></h2>
      </div>
      <form action="#!" method="post">
        <div class="form-group has-feedback feedback-left">
          <input type="text" placeholder="请输入您的用户名" class="form-control" name="username" id="username" required/>
          <span class="mdi mdi-account form-control-feedback" aria-hidden="true"></span>
        </div>
        <div class="form-group has-feedback feedback-left">
          <input type="password" placeholder="请输入密码" class="form-control" id="password" name="password" required/>
          <span class="mdi mdi-lock form-control-feedback" aria-hidden="true"></span>
        </div>
        <div class="form-group has-feedback feedback-left">
          <input type="txet" placeholder="请输入QQ" class="form-control" id="qq" name="qq" required/>
          <span class="mdi mdi-qqchat form-control-feedback" aria-hidden="true"></span>
        </div>
        <div class="form-group has-feedback feedback-left">
          <input type="text" placeholder="请输入邮箱" class="form-control" id="email" name="email"  required/>
          <span class="mdi mdi-email form-control-feedback" aria-hidden="true"></span>
          <b>注意 一旦 注册上将无法更改邮箱</b>
        </div>
        <?php 
        if($conf['verifytype'] == 'phone'){
            echo '<div class="form-group has-feedback feedback-left">
                  <input type="text" placeholder="手机号" class="form-control" id="phone" name="phone" maxlength="11" required/>
                  <span class="mdi mdi-cellphone-android form-control-feedback" aria-hidden="true"></span>
                </div>';
            $name1="请输入短信验证码";
        }
        ?>
        <div class="form-group has-feedback feedback-left row" id="emailCodeBlock" style="display: none;">
          <div class="col-xs-7">
               <input type="text" class="form-control" placeholder="图片验证码" id="code_input" name="captcha">
    			
             <span class="mdi mdi-check-all form-control-feedback" aria-hidden="true"></span>
          </div>
            <div class="col-xs-5">
                <img  id="captcha" class="pull-right" src="/api/captcha" title="看不清 换一个" alt="captcha" style="width: 120px;height: 38px;"/>
          </div>
        </div>
        <div class="form-group has-feedback feedback-left row">
          <div class="col-xs-7">
            <input type="text" id="code"  name="code" class="form-control no-border" placeholder="<?=$name1?>">
             <span class="mdi mdi-file-check form-control-feedback" aria-hidden="true"></span>
          </div>
            <div class="col-xs-5">
            <div class="pull-right" style="width: 120px;height: 38px;"><button id="sendcode" class="btn btn-primary" style="width: 120px;height: 38px;">点击获取</button></div> 
          </div>
        </div>
          <div class="form-group">
         <button class="btn btn-block btn-primary" type="button" id="reg">立即注册</button><br>
         <a href="./login" class="layadmin-user-jump-change layadmin-link">返回登录</a>
         <a href="./Retrieve" class="layui-link pull-right">找回密码</a>
         </div>
      </form>
            <hr>
          <footer class="col-sm-12 text-center">
            <p class="m-b-0">Copyright © <?php echo date('Y') ?> <a href="/"><?php echo $conf['sitename']?></a>. All right reserved</p>
          </footer>
        </div>
      </div>
    </div>
<script type="text/javascript" src="<?=userassets?>LightYearifname/js/jquery.min.js"></script>
<script type="text/javascript" src="<?=userassets?>LightYearifname/js/bootstrap.min.js"></script>
<script src="<?=LayerJS?>"></script>
<script src="<?=CaptchaJS?>"></script>
<script src="<?=userassets?>core_js/reg.js"></script>